package dbobjects;

import dbreflection.tablemanagement.DOField;
import dbreflection.tablemanagement.DOTable;
import dbreflection.tablemanagement.DatabaseObject;

import java.sql.Timestamp;

/**
 * Created by IntelliJ IDEA.
 * User: [J0k3r]
 * Date: 10.01.2009
 * Time: 15:57:57
 */
@DOTable(table = "db_object_param_history", pk = "id")
public class DBObjectParamHistory extends DatabaseObject {
    @DOField(column = "id")
    private Integer id;
    @DOField(column = "object_id")
    private Integer objectId;
    @DOField(column = "object_param_id")
    private Integer objectParamId;
    @DOField(column = "object_param_value_id")
    private Integer objectParamValueId;
    @DOField(column = "user_id")
    private Integer userId;
    @DOField(column = "change_time")
    private Timestamp changeTime;
    @DOField(column = "object_history_id")
    private Integer objectHistoryId;

    public DBObjectParamHistory() {
        this.id = UNASSIGNEDINT;
        this.objectId = UNASSIGNEDINT;
        this.objectParamId = UNASSIGNEDINT;
        this.objectParamValueId = UNASSIGNEDINT;
        this.userId = UNASSIGNEDINT;
        this.changeTime = UNASSIGNEDTIMESTAMP;
        this.objectHistoryId = UNASSIGNEDINT;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getObjectId() {
        return objectId;
    }

    public void setObjectId(Integer objectId) {
        this.objectId = objectId;
    }

    public Integer getObjectParamId() {
        return objectParamId;
    }

    public void setObjectParamId(Integer objectParamId) {
        this.objectParamId = objectParamId;
    }

    public Integer getObjectParamValueId() {
        return objectParamValueId;
    }

    public void setObjectParamValueId(Integer objectParamValueId) {
        this.objectParamValueId = objectParamValueId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Timestamp getChangeTime() {
        return changeTime;
    }

    public void setChangeTime(Timestamp changeTime) {
        this.changeTime = changeTime;
    }

    public void setObjectHistoryId(Integer objectHistoryId) {
        this.objectHistoryId = objectHistoryId;
    }

    public Integer getObjectHistoryId() {
        return objectHistoryId;
    }
}
